<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>既往史</title>
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="电子病历,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="<%=basePath%>js/jquery.js"></script> -->
<!-- <script type="text/javascript" src="js/history.js"></script> -->
<style type="text/css">
.weui_label {
	width: 8em
}
</style>
</head>
<script type="text/javascript">
var basePath="<%=basePath%>";
$(document).ready(function() {
		var menstrualHistory = $("#menstrualHistory").val();
		if (menstrualHistory != "") {
			$("#yuejing").show();
		}
	});
	function localSel() {
		var localDiseaseSel = $("#localDiseaseSel").val();
		if(localDiseaseSel==1){
		$("#localDisease").show();
		}else{
			$("#localDisease").hide();
		}
	}
	function traumaSel(){
	var majorTraumaSel = $("#majorTraumaSel").val();
		if(majorTraumaSel==1){
		$("#majorTrauma").show();
		}else{
			$("#majorTrauma").hide();
		}
	}
	function operationOpt(){
		var operationSel = $("#operationSel").val();
		if(operationSel==1){
		$("#operation").show();
		}else{
			$("#operation").hide();
		}
	}
	function allergyOpt(){
	var allergySel = $("#allergySel").val();
		if(allergySel==1){
		$("#allergy").show();
		}else{
			$("#allergy").hide();
		}
	}
	//曾患病
	function wasSickOpt(){
	var wasSickSel=$("#wasSickSel").val();
	if(wasSickSel==1){
		$("#wasSick").show();
	}else{
	$("#wasSick").hide();
	}
	}
	//忽略
	function ignore(){
		pop1();
	}
	
function pop1(){
    var w_height = $(window).height();
    $('.theleftmenu').css('height',w_height);
    $('.theleftmenu').css('display','block');
    $(".historymenu").hide();
       setTimeout(function(){
		$('.historymenu,.bg_mark').css('display','none');
		$('.historymenu .leftmenu_con ').css('display','none');
							},200);
        
//       弹出边菜单
    $('.theleftmenu .bg_mark').css('display','block');
    
    $('.theleftmenu .theleftmenu_con ' ).stop().animate({ left: '0' }, 400);
     
}
</script>
<body ontouchstart>
	<div class="container js_container"></div>
	<form action="">
		<!-- 个人病史开始 -->
		<div class="page" id="personHistory">
			<div class="bd">
				<div class="weui_grids">
				<h1 class="page_title" style="color:#225fba">既往病史</h1>
					<div class="weui_cells_title">
						
					</div>

					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 体健/体弱：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="bodyHealth"
								id="bodyHealth">
								<option value="1"
									<c:if test="${bean.bodyHealth==1 }">selected="selected"</c:if>>体健</option>
								<option value="0"
									<c:if test="${bean.bodyHealth==0 }">selected="selected"</c:if>>体弱</option>
							</select>
						</div>
					</div>
<!-- 					<div class="weui_cell weui_cell_select weui_select_after"> -->
<!-- 						<div class="weui_cell_hd"> -->
<!-- 							<span style="color: red;">*</span>体弱： -->
<!-- 						</div> -->
<!-- 						<div class="weui_cell_bd weui_cell_primary"> -->
<!-- 							<select class="weui_select" name="bodyWeak" -->
<!-- 								id="bodyWeak"> -->
<!-- 								<option value="0" -->
<!-- 									<c:if test="${bean.bodyWeak==0 }">selected="selected"</c:if>>否</option> -->
<!-- 								<option value="1" -->
<!-- 									<c:if test="${bean.bodyWeak==1 }">selected="selected"</c:if>>是</option> -->
<!-- 							</select> -->
<!-- 						</div> -->
<!-- 					</div> -->
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span>曾患病：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="wasSickSel"
								id="wasSickSel" onchange="wasSickOpt();">
								<option value="0"
									<c:if test="${bean.wasSick==0 }">selected="selected"</c:if>>否</option>
								<option value="1"
									<c:if test="${bean.wasSick==1 }">selected="selected"</c:if>>是</option>
							</select>
						</div>
					</div>
					<textarea class="weui_textarea" placeholder="请输入曾患病" rows="3"
						id="wasSick" name="wasSick" style="display: none">${bean.wasSick }</textarea>
						
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 重大外伤史：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="majorTraumaSel"
								id="majorTraumaSel" onchange="traumaSel();">
								<option value="0"<c:if test="${bean.majorTrauma==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.majorTrauma==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>

					</div>
					<textarea class="weui_textarea" placeholder="请输入重大外伤史" rows="3"
						id="majorTrauma" name="majorTrauma" style="display: none">${bean.majorTrauma }</textarea>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 手术史：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="operationSel"
								id="operationSel" onchange="operationOpt();">
								<option value="0"<c:if test="${bean.operation==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.operation==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>

					</div>
					<textarea class="weui_textarea" placeholder="请输入手术史" rows="3"
						id="operation" name="operation" style="display: none">${bean.operation }</textarea>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 过敏史：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="allergySel"
								id="allergySel" onchange="allergyOpt();">
								<option value="0"<c:if test="${bean.allergy==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.allergy==1 }">selected="selected"</c:if>>有</option>
							</select>
						</div>

					</div>
					<textarea class="weui_textarea" placeholder="请指出过敏源，如事物、药物等" rows="3"
						id="allergy" name="allergy" style="display: none">${bean.allergy }</textarea>
					
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 是否按时预防接种：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="timelyVaccination"
								id="timelyVaccination" >
								<option value="0"<c:if test="${bean.timelyVaccination==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.timelyVaccination==1 }">selected="selected"</c:if>>有</option>
							<option value="2"<c:if test="${bean.timelyVaccination==2 }">selected="selected"</c:if>>不详</option>
							</select>
						</div>

					</div>
					<div class="weui_cell weui_cell_select weui_select_after">
						<div class="weui_cell_hd">
							<span style="color: red;">*</span> 输血史：
						</div>
						<div class="weui_cell_bd weui_cell_primary">
							<select class="weui_select" name="transfusion"
								id="transfusion" >
								<option value="0"<c:if test="${bean.transfusion==0 }">selected="selected"</c:if>>无</option>
							<option value="1"<c:if test="${bean.transfusion==1 }">selected="selected"</c:if>>有</option>
							<option value="2"<c:if test="${bean.transfusion==2 }">selected="selected"</c:if>>不详</option>
							</select>
						</div>

					</div>


				</div>
					<input type="reset" style="display:none;" /> 
			</div>
			
			
					<div class="button_sp_area" style="text-align:-webkit-center;">
					<a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="ignore();">忽略</a>
<!-- 							<a href="javascript:;" -->
<!-- 							class="weui_btn weui_btn_mini weui_btn_primary" onclick="toPersionHis();">上一步</a> -->
						 <a href="javascript:;"
							class="weui_btn weui_btn_mini weui_btn_primary" onclick="tomenHis();">下一步</a>
					</div>
		</div>
		<!-- 个人病史结束 -->


	</form>
	
	
	<!--     toast开始 -->
						<div id="loadingToast" class="weui_loading_toast"
							style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<div class="weui_loading">
									<div class="weui_loading_leaf weui_loading_leaf_0"></div>
									<div class="weui_loading_leaf weui_loading_leaf_1"></div>
									<div class="weui_loading_leaf weui_loading_leaf_2"></div>
									<div class="weui_loading_leaf weui_loading_leaf_3"></div>
									<div class="weui_loading_leaf weui_loading_leaf_4"></div>
									<div class="weui_loading_leaf weui_loading_leaf_5"></div>
									<div class="weui_loading_leaf weui_loading_leaf_6"></div>
									<div class="weui_loading_leaf weui_loading_leaf_7"></div>
									<div class="weui_loading_leaf weui_loading_leaf_8"></div>
									<div class="weui_loading_leaf weui_loading_leaf_9"></div>
									<div class="weui_loading_leaf weui_loading_leaf_10"></div>
									<div class="weui_loading_leaf weui_loading_leaf_11"></div>
								</div>
								<p class="weui_toast_content">保存中...</p>
							</div>
						</div>

						<div id="toast" style="display: none;">
							<div class="weui_mask_transparent"></div>
							<div class="weui_toast">
								<i class="weui_icon_toast"></i>
								<p class="weui_toast_content" id="info">保存成功</p>
							</div>
						</div>
						<!--     toast结束 -->
</body>
</html>
